package com.nbgroup.controller;


import com.nbgroup.pojo.common.PageBean;
import com.nbgroup.service.IBusinessRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商机记录表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-10-28
 */
@RestController
@RequestMapping("/business/record")
public class BusinessRecordController {

    @Autowired
    private IBusinessRecordService businessRecordService;
    /**
     * 商机列表
     */
    @GetMapping("/list")
    public PageBean queryListRecords(Long businessId){
        return businessRecordService.queryListRecords(businessId);
    }
}
